/*
 * author      : 吴中勤 
 * date        : 2018/11/15
 * description : TODO
 */

package org.wzq.learn.port.consume.shop;

import org.springframework.stereotype.Component;
import org.wzq.learn.port.consume.shop.ShopDTO;
import org.wzq.learn.port.consume.shop.ShopClient;

import java.util.ArrayList;
import java.util.List;

@Component
public class ShopClientFallback implements ShopClient {

    @Override
    public List<ShopDTO> listShops() {
        List<ShopDTO> shopDTOList = new ArrayList<>(1);
        shopDTOList.add(new ShopDTO("mockId", "mockName", "mockSellerId"));
        return shopDTOList;
    }

    @Override
    public ShopDTO update(String shopId, ShopDTO shopDTO) {
        return shopDTO;
    }
}
